package simonxianyu.learn.springmybatis.db;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by simon on 2017/2/20.
 */
public interface BaseMapper<T, ID> {

  Long countAll();

  T getById(@Param("id") ID id);

  ID save(T model);
}
